#define _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    string reverseStr(string s, int k) {
        int i = s.size();
        for (int j = 0; j < i; j += k * 2)
        {
            reverse(s.begin() + j, s.begin() + min(j + k, i));

        }
        return s;


    }
};